package com.example.idlefish.GoodsInfo.parseGson

import com.example.idlefish.GoodsInfo.pojo.BuyInfo
import com.example.idlefish.GoodsInfo.pojo.EaseGoodInfo
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken

object parseEaseGoodInfo {
    fun  parseEaseGoodInfo(response:String): ArrayList<EaseGoodInfo> {
        val gson = Gson()
        val ttype = object : TypeToken<ArrayList<EaseGoodInfo>>(){}.type
        return gson.fromJson(response, ttype)
    }
}